<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
Route::rule('/','index/Index/index');
Route::rule('/index','index/Index/index');
Route::post('/add','index/Index/addenroll');
Route::rule('/order','index/Index/order');
Route::post('/addorder','index/Index/addorder');

//admin
Route::rule('/dbkjac','index/Admin/admin');
Route::rule('/getEnroll','index/Admin/getEnroll');
Route::rule('/getOrder','index/Admin/getOrder');


//后台管理系统
Route::get('/home','admin/Home/showHome');

// +----------------------------------------------------------------------
// | 事务模块
// +----------------------------------------------------------------------
Route::get('/all_work','admin/Work/allwork');
Route::get('/get_allwork','admin/Work/getAllWork');
Route::post('/add_work','admin/Work/addWork');

// +----------------------------------------------------------------------
// | 账号管理模块
// +----------------------------------------------------------------------
Route::get('/admin','admin/Admin/showAdmin');
Route::get('/get_admin','admin/Admin/getAdmin');
Route::post('/add_admin','admin/Admin/addAdmin');

// +----------------------------------------------------------------------
// | 店铺模块
// +----------------------------------------------------------------------
Route::get('/shop','admin/Shop/showShop');
Route::get('/shop_add','admin/Shop/showShopAdd');
Route::get('/shop_detail','admin/Shop/showShopDetail');
Route::get('/get_shop','admin/Shop/getShop');
Route::post('/add_shop','admin/Shop/addShop');



